package com.web.entity;

import org.springframework.web.bind.annotation.CrossOrigin;

/**
 * 分页的实体类
 */
@CrossOrigin
public class PageVO {

    //当前页
    private int current;
    //每页大小
    private int pageSize;
    //数据总数
    private int total;
    //数据集合
    private Object data;

    public PageVO(int current, int pageSize, int total, Object data) {
        this.current = current;
        this.pageSize = pageSize;
        this.total = total;
        this.data = data;
    }

    public PageVO() {
    }

    public int getCurrent() {
        return current;
    }

    public void setCurrent(int current) {
        this.current = current;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
